package com.hs.sfzy.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName appointment
 */
@Data
public class Appointment implements Serializable {
    private Long id;

    private Long typeId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private String content;

    private Long consultId;

    private Long userId;

    private String reply;

    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date replyTime;

    private Specialty specialty;

    private Consult consult;

    private User user;

    private static final long serialVersionUID = 1L;
}